﻿/// *******************************
/// 作者：reazhuang 庄星睿
/// 联系方式：reazhuang@outlook.com
/// 文件说明
using MEF1Core;
using System;
using System.ComponentModel.Composition.Hosting;

namespace LearnMEF1
{
	internal class Program
	{
	[STAThread]
		public static void Main(string[] args)
		{
			var cata = new DirectoryCatalog(Environment.CurrentDirectory, "*.dll");
			var container = new CompositionContainer(cata);
			var consoleWrite = container.GetExportedValue<ISend>("console.send");

			consoleWrite.Send();
			Console.ReadLine();
		}
	}
}
